/* 全局字体和背景 */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';
    background-color: #f4f5f5;
    display: flex;
    justify-content: center;
    padding-top: 40px;
}

/* 评论区主容器 */
.comment-section {
    width: 100%;
    max-width: 720px;
    background-color: #fff;
    border-radius: 4px;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* 头部：标题和Tabs */
.comment-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.comment-header .title {
    font-size: 18px;
    font-weight: 600;
    margin-right: 20px;
}

.comment-header .tabs {
    display: flex;
    align-items: center;
    font-size: 14px;
    color: #555;
}

.comment-header .tab {
    cursor: pointer;
    padding: 0 8px;
}

.comment-header .tab.active {
    color: #007bff;
    font-weight: 500;
}

.comment-header .divider {
    color: #ccc;
    margin: 0 4px;
}

/* 发布评论表单 */
.comment-form {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
    border-bottom: 1px solid #e9e9e9;
    padding-bottom: 30px;
}

.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.comment-input {
    flex-grow: 1;
    height: 40px;
    padding: 0 15px;
    border: 1px solid #e9e9e9;
    border-radius: 4px;
    background-color: #f9f9f9;
    font-size: 14px;
    outline: none;
}

.comment-input:focus {
    border-color: #007bff;
    background-color: #fff;
}

.post-button {
    height: 40px;
    padding: 0 20px;
    border: none;
    border-radius: 4px;
    background-color: #007bff;
    color: white;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.post-button:hover {
    background-color: #0056b3;
}

/* 评论列表 */
.comment-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.comment-item {
    display: flex;
    gap: 15px;
}

.comment-content {
    flex-grow: 1;
}

.comment-content .author {
    font-size: 14px;
    font-weight: 500;
    color: #555;
    margin: 0 0 5px 0;
}

.comment-content .text {
    font-size: 15px;
    color: #111;
    line-height: 1.6;
    margin: 0 0 8px 0;
}

/* 评论底部：时间、点赞、删除 */
.comment-footer {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 12px;
    color: #999;
}

.comment-footer .delete {
    cursor: pointer;
}

.comment-footer .delete:hover {
    color: #e53935;
}